/*
 * Copyright 2025 The JA-SIG Collaborative. All rights reserved.
 * distributed with this file and available online at
 */
package com.lap.auth.domain.job;

import com.lap.framework.ddd.AggregateRoot;
import lombok.Getter;

/**
 * 岗位领域。
 *
 * @author Shuisheng Lao(劳水生)
 * @version 0.0.1
 */
@Getter
public class Job extends AggregateRoot {

  private final Integer id;
  private final String code;
  private final String name;
  private final String remark;

  public Job(Integer id, String code, String name, String remark) {
    this.id = id;
    this.name = name;
    this.code = code;
    this.remark = remark;
  }

  public boolean isNew() {
    return (id == null);
  }
}
